package com.gtr.util;

import lombok.Setter;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Setter
@Component
@ConfigurationProperties(prefix = "jdwx")
public class SmsUtil implements InitializingBean {
    private String host;
    private String path;
    private String method;
    private String appcode;

    public static String Host;
    public static String Path;
    public static String Method;
    public static String AppCode;

    @Override
    public void afterPropertiesSet() throws Exception {
        Host = this.host;
        Path = this.path;
        Method = this.method;
        AppCode = this.appcode;
    }
}
